<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>管理页面</title>
        <link href="images/skin.css" rel="stylesheet" type="text/css" />
        <link href="images/form.css" rel="stylesheet" type="text/css" />
        <style type="text/css">
            <!--
            body {
                margin-left: 0px;
                margin-top: 0px;
                margin-right: 0px;
                margin-bottom: 0px;
                background-color: #EEF2FB;
            }

            table.listbox{margin-top:10px;background-color: #999; font-size: 12px}
            .listbox tr th{background-color: #EEE; text-align: center}
            .listbox tr td{background-color: #FFF}
            -->
        </style>
        <body>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
                    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
                            <tr>
                                <td height="31"><div class="titlebt">分类编辑</div></td>
                                <td align="right"><a href="{=$base=}/?c=cmsclass">返回</a></td>
                            </tr>
                        </table></td>
                    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
                </tr>
                <tr>
                    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
                    <td valign="top" bgcolor="#F7F8F9">
                        

<div class="form-container">
	<form action="{=$base=}/?c=cmsclass&a=save" method="post" onsubmit="return checkform(this)">
    <input type="hidden" name="id" value="{=$info.id=}" />
    	<fieldset>
    		<legend>基本信息</legend>

            <div><label>空间 <em>*</em></label>
                <input type="text" name="space" value="{=$info.space=}" />
            </div>

            <div><label>索引 <em>*</em></label>
                <input type="text" name="idx" value="{=$info.idx=}" />
            </div>
            
            <div><label>名称 <em>*</em></label>
                <input type="text" name="cname" value="{=$info.cname=}" style="width:500px;" />
            </div>
    	</fieldset>
        
        <fieldset class="item_list">
    		<legend>表单填写信息</legend>
                
            <div><label>副标题(subtitle)</label>
                名称：<input type="text" name="item_subtitle_name" value="{=$info.settings.i_subtitle.name=}" />
                显示：<select name="item_subtitle_flag"><option value="0">否</option><option value="1"{=if $info.settings.i_subtitle.flag == 1=} selected{=/if=}>是</option></select>
                必填：<select name="item_subtitle_must"><option value="0">否</option><option value="1"{=if $info.settings.i_subtitle.must == 1=} selected{=/if=}>是</option></select>
                说明：<input type="text" name="item_subtitle_note" value="{=$info.settings.i_subtitle.note=}" />
            </div>
                
            <div><label>链接(link)</label>
                名称：<input type="text" name="item_link_name" value="{=$info.settings.i_link.name=}" />
                显示：<select name="item_link_flag"><option value="0">否</option><option value="1"{=if $info.settings.i_link.flag == 1=} selected{=/if=}>是</option></select>
                必填：<select name="item_link_must"><option value="0">否</option><option value="1"{=if $info.settings.i_link.must == 1=} selected{=/if=}>是</option></select>
                说明：<input type="text" name="item_link_note" value="{=$info.settings.i_link.note=}" />
            </div>
            
            <div><label>图片(img) </label>
                名称：<input type="text" name="item_img_name" value="{=$info.settings.i_img.name=}" />
                显示：<select name="item_img_flag"><option value="0">否</option><option value="1"{=if $info.settings.i_img.flag == 1=} selected{=/if=}>是</option></select>
                必填：<select name="item_img_must"><option value="0">否</option><option value="1"{=if $info.settings.i_img.must == 1=} selected{=/if=}>是</option></select>
                说明：<input type="text" name="item_img_note" value="{=$info.settings.i_img.note=}" />
            </div>
            <div><label>图片处理</label>
                方式：<select name="item_img_deal"><option value="">原始图片</option><option value="resize">只缩略</option><option value="recut">缩略并裁剪</option></select>
                宽：<input type="text" name="item_img_width" value="{=$info.settings.i_img.width=}" />
                高：<input type="text" name="item_img_height" value="{=$info.settings.i_img.height=}" />
            </div>
            <div><label>缩略图(thumb)</label>
                缩略：<select name="item_thumb_has"><option value="0">否</option><option value="1"{=if $info.settings.thumb.has == 1=} selected{=/if=}>是</option></select>
                宽：<input type="text" name="item_thumb_width" value="{=$info.settings.thumb.width=}" />
                高：<input type="text" name="item_thumb_height" value="{=$info.settings.thumb.height=}" />
            </div>

            <div><label>是否有文本 </label>
                <select name="item_is_content"><option value="0">否</option><option value="1"{=if $info.settings.is_content == 1=} selected{=/if=}>是</option></select>
            </div>

            <div><label>是否需要排序 </label>
                <select name="item_is_sort"><option value="1">是</option><option value="0"{=if $info.settings.is_sort == 0=} selected{=/if=}>否</option></select>
            </div>
            
    	</fieldset>

    	<div class="buttonrow">
    		<input type="submit" value="提交" class="button" />&nbsp;&nbsp;
            <input type="button" value="取消" class="button" onclick="history.go(-1);" />
    	</div>
	</form>
</div>
                    
                    </td>
                    <td background="images/mail_rightbg.gif">&nbsp;</td>
                </tr>
                <tr>
                    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
                    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
                    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
                </tr>
            </table>

<script type="text/javascript">
function checkform(form)
{
    if (form.space.value == "")
    {
        alert("空间不能为空");
        form.space.focus();
        return false;
    }
    if (form.idx.value == "")
    {
        alert("索引不能为空");
        form.idx.focus();
        return false;
    }
    if (form.cname.value == "")
    {
        alert("名称不能为空");
        form.cname.focus();
        return false;
    }
}
</script>

        </body>
</html>